package com.young.springdemo.service.visitorpattern;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class ParttimeEmployee implements Employee {
    private String name;//员工名称
    private double workHour;//工作时长
    private double hourWage;//时薪

    @Override
    public void accept(Department department) {
        department.visit(this);
    }
}
